import requests
import config
class Login:
    def __init__(self):
        self.code_url=config.BASE_URL+" /api/captchaImage"
        self.login_url=config.BASE_URL+"/api/login"
    def code_API(self):
        return requests.get(url=self.code_url)
    def login_API(self,login_json):
        return requests.post(url=self.login_url,json={login_json})